import url from "@/url.config"
export default ({ service, request, tools }) => ({
    criterionAll(current, size) {
        //查询考核准则
        return request({
            url: url.ip1 + `/criterion/findByPage/${current}/${size}`,
            method: "get"
        })
    },

    deleteAll(id) {
        //删除考核准则
        return request({
            url: url.ip1 + `/criterion/remove/${id}`,
            method: "delete",
        })
    },
    criterionEdit(data) {
        //修改考核准则
        return request({
            url: url.ip1 + "/criterion/edit",
            method: "put",
            data: data
        })
    },
})